package o;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
import o.cbb.b;
import o.cbb.j;

public class cck extends cku implements OnClickListener {
    private d ˊॱ;
    private TextView ͺ;
    private TextView ॱ;

    public interface d {
        void ˏ(int i);
    }

    public static cck ˏ() {
        return new cck();
    }

    public Dialog onCreateDialog(Bundle bundle) {
        ॱ(-2, getActivity().getText(j.ˉ));
        ˎ(-1, 8);
        this.ʼ = ˊ(getActivity());
        return ˋ(getActivity()).create();
    }

    private View ˊ(Context context) {
        View inflate = LayoutInflater.from(context).inflate(o.cbb.d.ˏॱ, null);
        this.ॱ = (TextView) inflate.findViewById(b.ˏˏ);
        this.ͺ = (TextView) inflate.findViewById(b.ˏˎ);
        this.ॱ.setOnClickListener(this);
        this.ͺ.setOnClickListener(this);
        return inflate;
    }

    public void ˋ(d dVar) {
        this.ˊॱ = dVar;
    }

    public void onClick(View view) {
        if (view.getId() == this.ॱ.getId()) {
            ˊ(0);
            dismiss();
        } else if (view.getId() == this.ͺ.getId()) {
            ˊ(1);
            dismiss();
        }
    }

    private void ˊ(int i) {
        if (this.ˊॱ != null) {
            this.ˊॱ.ˏ(i);
        }
    }
}
